package com.smh.Orika;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Map;

/**
 * @author shenmhk
 * @create 2020-10-19 15:37
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {

    private Long id;
    private String name;
    private String email;
    private Date birth;
    //一对一
    private User user;
    //一对多
    private Map<String,String> address;
}
